using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using Dsp;


namespace Dsp.Test
{
    public static class Test_MatFileWriter
    {

        static public void Test()
        {
            MatrixD   m = new MatrixD(2, 3);
            double[,] n = new double [2, 3];
            double[]  v = new double[1024];

            for (int i = 0; i < m.Rows; i++)
            {
                for (int j = 0; j < m.Cols; j++)
                {
                    m[i, j] = i + j;
                    n[i, j] = i + j;
                }
            }

            for (int i=  0; i < v.Length; i++)
                v[i] = i * i;

            MatFileWriter f = new MatFileWriter("m.mat");
            //f.Write(m, "javi1");
            f.Write(n, "javi2");
            f.Write(v, "v");

            f.Close();
        }

    }
}
